package com.athuahua.spzx.test;

import com.athuahua.spzx.entity.UserInfo;
import com.athuahua.spzx.mapper.UserInfoMapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import jakarta.annotation.Resource;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

/**
 * @Author: huahua
 * @Date: 2024/8/13 0013
 * @Time: 16:06
 * @Description:
 */
@SpringBootTest
public class dbtest {

    @Resource
    UserInfoMapper userInfoMapper;

    @Test
    public void test01(){
        UserInfo userInfo = userInfoMapper.selectOne(new LambdaQueryWrapper<UserInfo>()
                .eq(UserInfo::getPhone, "17324050845"));


        userInfoMapper.insertTestAddress(userInfo);
    }
}
